package com.black.app.service.store;

import com.black.app.domain.req.store.add.AppStoreFreightTemplateAddReq;
import com.black.app.domain.req.store.edit.AppStoreFreightTemplateEditReq;
import com.black.app.domain.req.store.query.AppStoreFreightTemplateQueryReq;
import com.black.app.domain.resp.store.AppStoreFreightTemplateResp;
import com.black.app.domain.store.AppStoreFreightTemplate;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

/**
* @author zhous
* @description 针对表【app_store_freight_template】的数据库操作Service
* @createDate 2024-11-01 16:35:34
*/
public interface AppStoreFreightTemplateService extends IService<AppStoreFreightTemplate> {

    /**
     * 分页查询运费模板
     * @param req
     * @return
     */
    PageInfo<AppStoreFreightTemplateResp> paginationQuery(AppStoreFreightTemplateQueryReq req);

    /**
     * 新增运费模板
     * @param req
     * @return
     */
    boolean add(AppStoreFreightTemplateAddReq req);

    /**
     * 根据模板id查询
     * @param templateId
     * @return
     */
    AppStoreFreightTemplateResp findByTemplateId(Integer templateId);

    /**
     * 修改运费模板
     * @param req
     * @return
     */
    boolean edit(AppStoreFreightTemplateEditReq req);

    /**
     * 删除运费模板
     * @param ids
     * @return
     */
    boolean deleteById(Integer[] ids);
}
